<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>mechanoChemIGA: include/appCtx.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">mechanoChemIGA
   &#160;<span id="projectnumber">0.2.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="codestructure.html"><span>Code&#160;structure</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li><a href="modules.html"><span>Functions</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="https://github.com/mechanoChem/mechanoChem"><span>GitHub&#160;code&#160;repo</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_56329ff6e0dc847d01d87f9d5168c35c.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">appCtx.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="app_ctx_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef appCtx_h</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define appCtx_h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//extern &quot;C&quot; {</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;petiga.h&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//}</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="tensor_8h.html">tensor.h</a>&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="solution_class_8h.html">solutionClass.h</a>&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//#include &quot;DNN.h&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;random&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//Forward declaration of structure</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> DIM&gt;</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="struct_app_ctx.html">   18</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_app_ctx.html">AppCtx</a>;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * Function pointer definition for user boundary conditions</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dim&gt;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="app_ctx_8h.html#a5f15093cf5427bfb2fd3033d31df7a88">   24</a></span>&#160;<span class="keyword">using</span> <a class="code" href="app_ctx_8h.html#a5f15093cf5427bfb2fd3033d31df7a88">BCFunction</a> = void(*)(<a class="code" href="struct_app_ctx.html">AppCtx&lt;dim&gt;</a>&amp;, double);</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * Function pointer definition for user initial conditions for scalar fields</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dim&gt;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="app_ctx_8h.html#a5d9f27a2031043e19e4fe2dc0b697b70">   30</a></span>&#160;<span class="keyword">using</span> <a class="code" href="app_ctx_8h.html#a5d9f27a2031043e19e4fe2dc0b697b70">scalarICFunction</a> = double(*)(<span class="keyword">const</span> <a class="code" href="class_tensor.html">Tensor&lt;1,dim,double&gt;</a>&amp;, <span class="keywordtype">unsigned</span> int, <a class="code" href="struct_app_ctx.html">AppCtx&lt;dim&gt;</a>&amp;);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> * Function pointer definition for user initial conditions for vector fields</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dim&gt;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="app_ctx_8h.html#a88bfb6273f85a78954de085e7a9cb02c">   36</a></span>&#160;<span class="keyword">using</span> <a class="code" href="class_tensor.html">vectorICFunction</a> = <a class="code" href="class_tensor.html">Tensor&lt;1,dim,double&gt;</a>(*)(<span class="keyword">const</span> <a class="code" href="class_tensor.html">Tensor&lt;1,dim,double&gt;</a> &amp;x, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vector_i, <a class="code" href="struct_app_ctx.html">AppCtx&lt;dim&gt;</a> &amp;user);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment"> * Function pointer definition for user load stepping definition</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dim&gt;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="app_ctx_8h.html#a853d9f9a115257472a5fd014902c8863">   42</a></span>&#160;<span class="keyword">using</span> <a class="code" href="app_ctx_8h.html#a853d9f9a115257472a5fd014902c8863">LSFunction</a> = void(*)(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> step,<a class="code" href="struct_app_ctx.html">AppCtx&lt;dim&gt;</a> &amp;user);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment"> * Function pointer definition for user adaptive time stepping definition</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dim&gt;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="app_ctx_8h.html#add99aa8e35b75978e0e3ca041bb481a7">   48</a></span>&#160;<span class="keyword">using</span> <a class="code" href="app_ctx_8h.html#add99aa8e35b75978e0e3ca041bb481a7">adaptiveTSFunction</a> = void(*)(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> step,<a class="code" href="struct_app_ctx.html">AppCtx&lt;dim&gt;</a> &amp;user);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment"> * Function pointer definition for user definition of fields to project</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dim&gt;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keyword">using</span> <a class="code" href="app_ctx_8h.html#aa90344a3c2eb0a5f3f8e3210bd8184e0">PFFunction</a> = void(*)(<span class="keyword">const</span> <a class="code" href="class_tensor.html">Tensor&lt;1,dim,double&gt;</a> &amp;x,</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;               <span class="keyword">const</span> <a class="code" href="class_tensor.html">Tensor&lt;1,dim,double&gt;</a> &amp;normal,</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;               <span class="keyword">const</span> <a class="code" href="classsolution_scalars.html">solutionScalars&lt;dim,double&gt;</a> &amp;c,</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;               <span class="keyword">const</span> <a class="code" href="classsolution_vectors.html">solutionVectors&lt;dim,double&gt;</a> &amp;u,</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;               <a class="code" href="struct_app_ctx.html">AppCtx&lt;dim&gt;</a> &amp;user,</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;               std::vector&lt;double&gt; &amp;scalarProjections,</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="app_ctx_8h.html#aa90344a3c2eb0a5f3f8e3210bd8184e0">   60</a></span>&#160;               std::vector&lt;Tensor&lt;1,dim,double&gt; &gt; &amp;vectorProjections);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment"> * Structure to hold parameters and variables used by PetIGA, the model, the IBVP, etc. Values used universally are explicitly</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment"> * listed. Otherwise, they should be stored in the std::map matParam.</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> DIM&gt;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="keyword">struct </span><a class="code" href="struct_app_ctx.html">AppCtx</a>{</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment">   * An IGA object from the PetIGA libary (bitbucket.org/dalcinl/petiga/), used in solving for the solution fields.</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#adfcef5b251f90ce037459e347d8f8b63">   73</a></span>&#160;  IGA <a class="code" href="struct_app_ctx.html#adfcef5b251f90ce037459e347d8f8b63">iga</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment">   * An IGA object used in solving for the solution fields.</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a2e274b20a2ede848fb33f819c0b18e5b">   78</a></span>&#160;  IGA <a class="code" href="struct_app_ctx.html#a2e274b20a2ede848fb33f819c0b18e5b">igaProject</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">   * A pointer to a SNES object from the PETSc library (www.mcs.anl.gov/petsc/), used for nonlinear solves.</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a4b921eff5b19d4030a817d2a60d58750">   83</a></span>&#160;  SNES* <a class="code" href="struct_app_ctx.html#a4b921eff5b19d4030a817d2a60d58750">snes</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment">   * A pointer to a PETSc vector that stores the solution vector for the current step.</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a7f9ce51f72bd948d78fbf7082d7b5114">   88</a></span>&#160;  Vec *<a class="code" href="struct_app_ctx.html#a7f9ce51f72bd948d78fbf7082d7b5114">U</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">   * A pointer to a PETSc vector that stores the solution vector for the previous step.</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a52b8656a2d68c867657f949ca8a707ca">   93</a></span>&#160;  Vec *<a class="code" href="struct_app_ctx.html#a52b8656a2d68c867657f949ca8a707ca">Up</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">   * A pointer to a PETSc vector that stores the solution vector for the step before the previous step.</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a777d9cd545a0a6ba1180c904409fead1">   98</a></span>&#160;  Vec *<a class="code" href="struct_app_ctx.html#a777d9cd545a0a6ba1180c904409fead1">Upp</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">   * Value used to scale the domain. Defaults to 1.</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#ade3d8cfe6a661cd19e29049f995218cb">  103</a></span>&#160;  PetscReal <a class="code" href="struct_app_ctx.html#ade3d8cfe6a661cd19e29049f995218cb">GridScale</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment">   * Flag specifying the use of the Sacado automatic differentiation package from Trilinos (trilinos.org/packages/sacado/). Defaults to true.</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#aa3e4ca7393c5e0dd0b28add8c04620a6">  108</a></span>&#160;  PetscBool <a class="code" href="struct_app_ctx.html#aa3e4ca7393c5e0dd0b28add8c04620a6">ADSacado</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment">   * Value available for use in the definition of Dirchlet boundary conditions.</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#aaeea040de4e556032e940b94bf137b16">  113</a></span>&#160;  PetscReal <a class="code" href="struct_app_ctx.html#aaeea040de4e556032e940b94bf137b16">uDirichlet</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment">   * 1st order tensor with components defining the number of elements in each direction.</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a55ccabd543df9a0223cd34dbd64c987d">  118</a></span>&#160;  <a class="code" href="class_tensor.html">Tensor&lt;1,DIM,PetscInt&gt;</a> <a class="code" href="struct_app_ctx.html#a55ccabd543df9a0223cd34dbd64c987d">N</a>;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="comment">   * 1st order tensor with components defining the dimension of the hyperrectangle in each direction.</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a789652912f4d6df6c0836aa22ae93de0">  123</a></span>&#160;  <a class="code" href="class_tensor.html">Tensor&lt;1,DIM,PetscReal&gt;</a> <a class="code" href="struct_app_ctx.html#a789652912f4d6df6c0836aa22ae93de0">L</a>;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">   * 1st order tensor with components defining the periodicity of the domain in each direction. Defaults to PETSC_FALSE.</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#ac77e8a2af239ac3f36a49dfc69ad5c69">  128</a></span>&#160;  <a class="code" href="class_tensor.html">Tensor&lt;1,DIM,PetscBool&gt;</a> <a class="code" href="struct_app_ctx.html#ac77e8a2af239ac3f36a49dfc69ad5c69">periodic</a>;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="comment">   * Initial time step value. Can be used or modified in the adaptiveTimeStep user function. Defaults to 1.</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a4c155b92216444548c4457f18e050630">  133</a></span>&#160;  PetscReal <a class="code" href="struct_app_ctx.html#a4c155b92216444548c4457f18e050630">dtVal</a>;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="comment">   * Current time step value. Can be used or modified in the adaptiveTimeStep user function.</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a102ae36ef6e9df9f12c7e988659b5ff0">  138</a></span>&#160;  PetscReal <a class="code" href="struct_app_ctx.html#a102ae36ef6e9df9f12c7e988659b5ff0">dt</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="comment">   * Value defining the current time in the simulation (should only be read, not defined by the user).</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#af585181ec35de11d46ea249aee869f07">  143</a></span>&#160;  PetscReal <a class="code" href="struct_app_ctx.html#af585181ec35de11d46ea249aee869f07">time</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="comment">   * Value defining the total time to be simulated. Defaults to 1.</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a17b4070be131d7cee7880bbc695f9169">  148</a></span>&#160;  PetscReal <a class="code" href="struct_app_ctx.html#a17b4070be131d7cee7880bbc695f9169">totalTime</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="comment">   * Integer defining how frequently to output results. Defaults to 1 (i.e. every time step).</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a7c81203929d679b6ee72dec416c9bea9">  153</a></span>&#160;  PetscInt <a class="code" href="struct_app_ctx.html#a7c81203929d679b6ee72dec416c9bea9">skipOutput</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="comment">   * Define the initial iteration number. Defaults to 0.</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a28a6be93b52da95fb5e891f10a9a5d87">  158</a></span>&#160;  PetscInt <a class="code" href="struct_app_ctx.html#a28a6be93b52da95fb5e891f10a9a5d87">RESTART_IT</a>;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="comment">   * Define the initial time in the simulation. Defaults to 0.</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a6d5465cb515bc053db8785edd2e1b21b">  163</a></span>&#160;  PetscReal <a class="code" href="struct_app_ctx.html#a6d5465cb515bc053db8785edd2e1b21b">RESTART_TIME</a>;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="comment">   * The output directory. The code will not create the directory if it does not exist. Defaults to &quot;.&quot; (the current directory).</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a22615816f65048b646e4451c167f747a">  168</a></span>&#160;  std::string <a class="code" href="struct_app_ctx.html#a22615816f65048b646e4451c167f747a">outputDir</a>;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">   * Vector of strings defining the names of the scalar solution fields. The vector length is used to set the number of scalar solution fields.</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a6794fa3a8512e9239c9f2e4c7bf18ec3">  173</a></span>&#160;  std::vector&lt;std::string&gt; <a class="code" href="struct_app_ctx.html#a6794fa3a8512e9239c9f2e4c7bf18ec3">scalarSolnFields</a>;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="comment">   * Vector of strings defining the names of the vector solution fields. The vector length is used to set the number of vector solution fields.</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#ae171e542b477f3394601555549b7d3a8">  178</a></span>&#160;  std::vector&lt;std::string&gt; <a class="code" href="struct_app_ctx.html#ae171e542b477f3394601555549b7d3a8">vectorSolnFields</a>;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="comment">   * Vector of strings defining the names of the scalar projection fields. The vector length is used to set the number of scalar projection fields.</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a9bc7b320034d23a4cb30b978ae0396c7">  183</a></span>&#160;  std::vector&lt;std::string&gt; <a class="code" href="struct_app_ctx.html#a9bc7b320034d23a4cb30b978ae0396c7">scalarProjectnFields</a>;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="comment">   * Vector of strings defining the names of the vector projection fields. The vector length is used to set the number of vector projection fields.</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a1aad5b1f120463c83d39e7c8b0bc0523">  188</a></span>&#160;  std::vector&lt;std::string&gt; <a class="code" href="struct_app_ctx.html#a1aad5b1f120463c83d39e7c8b0bc0523">vectorProjectnFields</a>;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="comment">   * Define the polynomial order of the basis functions. Defaults to 2.</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a23cded74ca3d8ec2f99d69e41d8539ca">  193</a></span>&#160;  PetscInt <a class="code" href="struct_app_ctx.html#a23cded74ca3d8ec2f99d69e41d8539ca">polyOrder</a>;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="comment">   * Define the global continuity of the spline basis functions. This value must be less than the polynomial order. Defaults to 1.</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#ae091f872a8ec5d2a5492586ae8fcbcbb">  198</a></span>&#160;  PetscInt <a class="code" href="struct_app_ctx.html#ae091f872a8ec5d2a5492586ae8fcbcbb">globalContinuity</a>;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="comment">   * 4th order elasticity tensor.</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#afcb47a79a853cee1ae23ac5194ba05a5">  203</a></span>&#160;  <a class="code" href="class_tensor.html">Tensor&lt;4,DIM,double&gt;</a> <a class="code" href="struct_app_ctx.html#afcb47a79a853cee1ae23ac5194ba05a5">C_e</a>;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="comment">   * C++ map available for including additional double variables.</span></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a36448fa26553468f32e3cab046566bea">  208</a></span>&#160;  std::map&lt;std::string,PetscReal&gt; <a class="code" href="struct_app_ctx.html#a36448fa26553468f32e3cab046566bea">matParam</a>;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="comment">   * Void pointer available for additional user objects.</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#ae6c752a4c1c05c1fbd5623711f467712">  213</a></span>&#160;  <span class="keywordtype">void</span> *<a class="code" href="struct_app_ctx.html#ae6c752a4c1c05c1fbd5623711f467712">parameters</a>;</div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a3818d1cb13efe646544e17d750c24bd8">  214</a></span>&#160;  <span class="keywordtype">void</span> *<a class="code" href="struct_app_ctx.html#a3818d1cb13efe646544e17d750c24bd8">parameters2</a>;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a82c1e8d8aca14b5512f031c55284da3e">  216</a></span>&#160;  <span class="keywordtype">double</span> *<a class="code" href="struct_app_ctx.html#a82c1e8d8aca14b5512f031c55284da3e">par_mat</a>;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="comment">   * Object for random number generation</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#ab577cbc7a7051e1bcf60c2c1797a0feb">  221</a></span>&#160;  std::mt19937 <a class="code" href="struct_app_ctx.html#ab577cbc7a7051e1bcf60c2c1797a0feb">gen</a>;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="comment">   * Pointer to function setting Dirichlet boundary conditions.</span></div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a86be433132a33a67de55e6b137326c16">  226</a></span>&#160;  <a class="code" href="app_ctx_8h.html#a5f15093cf5427bfb2fd3033d31df7a88">BCFunction&lt;DIM&gt;</a> <a class="code" href="struct_app_ctx.html#a86be433132a33a67de55e6b137326c16">boundaryConditions</a>;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="comment">   * Pointer to function setting initial conditions for scalar fields.</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a4a4f8fca81419b6f43a612a72ed0a989">  231</a></span>&#160;  <a class="code" href="app_ctx_8h.html#a5d9f27a2031043e19e4fe2dc0b697b70">scalarICFunction&lt;DIM&gt;</a> <a class="code" href="struct_app_ctx.html#a4a4f8fca81419b6f43a612a72ed0a989">scalarInitialConditions</a>;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="comment">   * Pointer to function setting initial conditions for vector fields.</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a2575f8ef3d910701696ec41b0b6b2aca">  236</a></span>&#160;  <a class="code" href="class_tensor.html">vectorICFunction&lt;DIM&gt;</a> <a class="code" href="struct_app_ctx.html#a2575f8ef3d910701696ec41b0b6b2aca">vectorInitialConditions</a>;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="comment">   * Pointer to function defining user load stepping.</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#abc53c98a6b7d83305e474238bc3d9f51">  241</a></span>&#160;  <a class="code" href="app_ctx_8h.html#a853d9f9a115257472a5fd014902c8863">LSFunction&lt;DIM&gt;</a> <a class="code" href="struct_app_ctx.html#abc53c98a6b7d83305e474238bc3d9f51">loadStep</a>;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="comment">   * Pointer to function defining user adaptive time stepping.</span></div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a4d739b544156f8fa2d05c8e6650ed2c0">  246</a></span>&#160;  <a class="code" href="app_ctx_8h.html#add99aa8e35b75978e0e3ca041bb481a7">adaptiveTSFunction&lt;DIM&gt;</a> <a class="code" href="struct_app_ctx.html#a4d739b544156f8fa2d05c8e6650ed2c0">adaptiveTimeStep</a>;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="comment">  /**</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="comment">   * Pointer to function defining fields to project.</span></div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="comment">   */</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#af442fd9179e95d228ca6c551c97720d0">  251</a></span>&#160;  <a class="code" href="app_ctx_8h.html#aa90344a3c2eb0a5f3f8e3210bd8184e0">PFFunction&lt;DIM&gt;</a> <a class="code" href="struct_app_ctx.html#af442fd9179e95d228ca6c551c97720d0">projectFields</a>;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;  <span class="comment">//Define default values</span></div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="struct_app_ctx.html#a641657521eb3a01e1a7ff8471f04f133">  254</a></span>&#160;  <a class="code" href="struct_app_ctx.html">AppCtx&lt;DIM&gt;</a>() : <a class="code" href="struct_app_ctx.html#ade3d8cfe6a661cd19e29049f995218cb">GridScale</a>(1.), <a class="code" href="struct_app_ctx.html#aa3e4ca7393c5e0dd0b28add8c04620a6">ADSacado</a>(PETSC_TRUE), <a class="code" href="struct_app_ctx.html#aaeea040de4e556032e940b94bf137b16">uDirichlet</a>(0.), <a class="code" href="struct_app_ctx.html#a4c155b92216444548c4457f18e050630">dtVal</a>(1.), <a class="code" href="struct_app_ctx.html#a17b4070be131d7cee7880bbc695f9169">totalTime</a>(1.), <a class="code" href="struct_app_ctx.html#a7c81203929d679b6ee72dec416c9bea9">skipOutput</a>(1), <a class="code" href="struct_app_ctx.html#a28a6be93b52da95fb5e891f10a9a5d87">RESTART_IT</a>(0), <a class="code" href="struct_app_ctx.html#a6d5465cb515bc053db8785edd2e1b21b">RESTART_TIME</a>(0.), <a class="code" href="struct_app_ctx.html#a22615816f65048b646e4451c167f747a">outputDir</a>(<span class="stringliteral">&quot;.&quot;</span>), <a class="code" href="struct_app_ctx.html#a23cded74ca3d8ec2f99d69e41d8539ca">polyOrder</a>(2), <a class="code" href="struct_app_ctx.html#ae091f872a8ec5d2a5492586ae8fcbcbb">globalContinuity</a>(1) {}</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;};</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="struct_app_ctx_html_a3818d1cb13efe646544e17d750c24bd8"><div class="ttname"><a href="struct_app_ctx.html#a3818d1cb13efe646544e17d750c24bd8">AppCtx::parameters2</a></div><div class="ttdeci">void * parameters2</div><div class="ttdef"><b>Definition:</b> appCtx.h:214</div></div>
<div class="ttc" id="struct_app_ctx_html_a4a4f8fca81419b6f43a612a72ed0a989"><div class="ttname"><a href="struct_app_ctx.html#a4a4f8fca81419b6f43a612a72ed0a989">AppCtx::scalarInitialConditions</a></div><div class="ttdeci">scalarICFunction&lt; DIM &gt; scalarInitialConditions</div><div class="ttdef"><b>Definition:</b> appCtx.h:231</div></div>
<div class="ttc" id="struct_app_ctx_html_ac77e8a2af239ac3f36a49dfc69ad5c69"><div class="ttname"><a href="struct_app_ctx.html#ac77e8a2af239ac3f36a49dfc69ad5c69">AppCtx::periodic</a></div><div class="ttdeci">Tensor&lt; 1, DIM, PetscBool &gt; periodic</div><div class="ttdef"><b>Definition:</b> appCtx.h:128</div></div>
<div class="ttc" id="solution_class_8h_html"><div class="ttname"><a href="solution_class_8h.html">solutionClass.h</a></div></div>
<div class="ttc" id="struct_app_ctx_html"><div class="ttname"><a href="struct_app_ctx.html">AppCtx</a></div><div class="ttdef"><b>Definition:</b> appCtx.h:18</div></div>
<div class="ttc" id="struct_app_ctx_html_a102ae36ef6e9df9f12c7e988659b5ff0"><div class="ttname"><a href="struct_app_ctx.html#a102ae36ef6e9df9f12c7e988659b5ff0">AppCtx::dt</a></div><div class="ttdeci">PetscReal dt</div><div class="ttdef"><b>Definition:</b> appCtx.h:138</div></div>
<div class="ttc" id="struct_app_ctx_html_a1aad5b1f120463c83d39e7c8b0bc0523"><div class="ttname"><a href="struct_app_ctx.html#a1aad5b1f120463c83d39e7c8b0bc0523">AppCtx::vectorProjectnFields</a></div><div class="ttdeci">std::vector&lt; std::string &gt; vectorProjectnFields</div><div class="ttdef"><b>Definition:</b> appCtx.h:188</div></div>
<div class="ttc" id="struct_app_ctx_html_a6d5465cb515bc053db8785edd2e1b21b"><div class="ttname"><a href="struct_app_ctx.html#a6d5465cb515bc053db8785edd2e1b21b">AppCtx::RESTART_TIME</a></div><div class="ttdeci">PetscReal RESTART_TIME</div><div class="ttdef"><b>Definition:</b> appCtx.h:163</div></div>
<div class="ttc" id="app_ctx_8h_html_add99aa8e35b75978e0e3ca041bb481a7"><div class="ttname"><a href="app_ctx_8h.html#add99aa8e35b75978e0e3ca041bb481a7">adaptiveTSFunction</a></div><div class="ttdeci">void(*)(unsigned int step, AppCtx&lt; dim &gt; &amp;user) adaptiveTSFunction</div><div class="ttdef"><b>Definition:</b> appCtx.h:48</div></div>
<div class="ttc" id="struct_app_ctx_html_af585181ec35de11d46ea249aee869f07"><div class="ttname"><a href="struct_app_ctx.html#af585181ec35de11d46ea249aee869f07">AppCtx::time</a></div><div class="ttdeci">PetscReal time</div><div class="ttdef"><b>Definition:</b> appCtx.h:143</div></div>
<div class="ttc" id="struct_app_ctx_html_ab577cbc7a7051e1bcf60c2c1797a0feb"><div class="ttname"><a href="struct_app_ctx.html#ab577cbc7a7051e1bcf60c2c1797a0feb">AppCtx::gen</a></div><div class="ttdeci">std::mt19937 gen</div><div class="ttdef"><b>Definition:</b> appCtx.h:221</div></div>
<div class="ttc" id="classsolution_scalars_html"><div class="ttname"><a href="classsolution_scalars.html">solutionScalars</a></div><div class="ttdef"><b>Definition:</b> solutionClass.h:11</div></div>
<div class="ttc" id="struct_app_ctx_html_a23cded74ca3d8ec2f99d69e41d8539ca"><div class="ttname"><a href="struct_app_ctx.html#a23cded74ca3d8ec2f99d69e41d8539ca">AppCtx::polyOrder</a></div><div class="ttdeci">PetscInt polyOrder</div><div class="ttdef"><b>Definition:</b> appCtx.h:193</div></div>
<div class="ttc" id="struct_app_ctx_html_a52b8656a2d68c867657f949ca8a707ca"><div class="ttname"><a href="struct_app_ctx.html#a52b8656a2d68c867657f949ca8a707ca">AppCtx::Up</a></div><div class="ttdeci">Vec * Up</div><div class="ttdef"><b>Definition:</b> appCtx.h:93</div></div>
<div class="ttc" id="struct_app_ctx_html_a86be433132a33a67de55e6b137326c16"><div class="ttname"><a href="struct_app_ctx.html#a86be433132a33a67de55e6b137326c16">AppCtx::boundaryConditions</a></div><div class="ttdeci">BCFunction&lt; DIM &gt; boundaryConditions</div><div class="ttdef"><b>Definition:</b> appCtx.h:226</div></div>
<div class="ttc" id="app_ctx_8h_html_a853d9f9a115257472a5fd014902c8863"><div class="ttname"><a href="app_ctx_8h.html#a853d9f9a115257472a5fd014902c8863">LSFunction</a></div><div class="ttdeci">void(*)(unsigned int step, AppCtx&lt; dim &gt; &amp;user) LSFunction</div><div class="ttdef"><b>Definition:</b> appCtx.h:42</div></div>
<div class="ttc" id="tensor_8h_html"><div class="ttname"><a href="tensor_8h.html">tensor.h</a></div></div>
<div class="ttc" id="struct_app_ctx_html_a22615816f65048b646e4451c167f747a"><div class="ttname"><a href="struct_app_ctx.html#a22615816f65048b646e4451c167f747a">AppCtx::outputDir</a></div><div class="ttdeci">std::string outputDir</div><div class="ttdef"><b>Definition:</b> appCtx.h:168</div></div>
<div class="ttc" id="struct_app_ctx_html_a2575f8ef3d910701696ec41b0b6b2aca"><div class="ttname"><a href="struct_app_ctx.html#a2575f8ef3d910701696ec41b0b6b2aca">AppCtx::vectorInitialConditions</a></div><div class="ttdeci">vectorICFunction&lt; DIM &gt; vectorInitialConditions</div><div class="ttdef"><b>Definition:</b> appCtx.h:236</div></div>
<div class="ttc" id="struct_app_ctx_html_a36448fa26553468f32e3cab046566bea"><div class="ttname"><a href="struct_app_ctx.html#a36448fa26553468f32e3cab046566bea">AppCtx::matParam</a></div><div class="ttdeci">std::map&lt; std::string, PetscReal &gt; matParam</div><div class="ttdef"><b>Definition:</b> appCtx.h:208</div></div>
<div class="ttc" id="struct_app_ctx_html_aaeea040de4e556032e940b94bf137b16"><div class="ttname"><a href="struct_app_ctx.html#aaeea040de4e556032e940b94bf137b16">AppCtx::uDirichlet</a></div><div class="ttdeci">PetscReal uDirichlet</div><div class="ttdef"><b>Definition:</b> appCtx.h:113</div></div>
<div class="ttc" id="struct_app_ctx_html_ae171e542b477f3394601555549b7d3a8"><div class="ttname"><a href="struct_app_ctx.html#ae171e542b477f3394601555549b7d3a8">AppCtx::vectorSolnFields</a></div><div class="ttdeci">std::vector&lt; std::string &gt; vectorSolnFields</div><div class="ttdef"><b>Definition:</b> appCtx.h:178</div></div>
<div class="ttc" id="struct_app_ctx_html_af442fd9179e95d228ca6c551c97720d0"><div class="ttname"><a href="struct_app_ctx.html#af442fd9179e95d228ca6c551c97720d0">AppCtx::projectFields</a></div><div class="ttdeci">PFFunction&lt; DIM &gt; projectFields</div><div class="ttdef"><b>Definition:</b> appCtx.h:251</div></div>
<div class="ttc" id="struct_app_ctx_html_a4b921eff5b19d4030a817d2a60d58750"><div class="ttname"><a href="struct_app_ctx.html#a4b921eff5b19d4030a817d2a60d58750">AppCtx::snes</a></div><div class="ttdeci">SNES * snes</div><div class="ttdef"><b>Definition:</b> appCtx.h:83</div></div>
<div class="ttc" id="struct_app_ctx_html_a6794fa3a8512e9239c9f2e4c7bf18ec3"><div class="ttname"><a href="struct_app_ctx.html#a6794fa3a8512e9239c9f2e4c7bf18ec3">AppCtx::scalarSolnFields</a></div><div class="ttdeci">std::vector&lt; std::string &gt; scalarSolnFields</div><div class="ttdef"><b>Definition:</b> appCtx.h:173</div></div>
<div class="ttc" id="struct_app_ctx_html_aa3e4ca7393c5e0dd0b28add8c04620a6"><div class="ttname"><a href="struct_app_ctx.html#aa3e4ca7393c5e0dd0b28add8c04620a6">AppCtx::ADSacado</a></div><div class="ttdeci">PetscBool ADSacado</div><div class="ttdef"><b>Definition:</b> appCtx.h:108</div></div>
<div class="ttc" id="class_tensor_html"><div class="ttname"><a href="class_tensor.html">Tensor</a></div><div class="ttdef"><b>Definition:</b> tensor.h:10</div></div>
<div class="ttc" id="struct_app_ctx_html_a4c155b92216444548c4457f18e050630"><div class="ttname"><a href="struct_app_ctx.html#a4c155b92216444548c4457f18e050630">AppCtx::dtVal</a></div><div class="ttdeci">PetscReal dtVal</div><div class="ttdef"><b>Definition:</b> appCtx.h:133</div></div>
<div class="ttc" id="struct_app_ctx_html_ae6c752a4c1c05c1fbd5623711f467712"><div class="ttname"><a href="struct_app_ctx.html#ae6c752a4c1c05c1fbd5623711f467712">AppCtx::parameters</a></div><div class="ttdeci">void * parameters</div><div class="ttdef"><b>Definition:</b> appCtx.h:213</div></div>
<div class="ttc" id="struct_app_ctx_html_a4d739b544156f8fa2d05c8e6650ed2c0"><div class="ttname"><a href="struct_app_ctx.html#a4d739b544156f8fa2d05c8e6650ed2c0">AppCtx::adaptiveTimeStep</a></div><div class="ttdeci">adaptiveTSFunction&lt; DIM &gt; adaptiveTimeStep</div><div class="ttdef"><b>Definition:</b> appCtx.h:246</div></div>
<div class="ttc" id="struct_app_ctx_html_ade3d8cfe6a661cd19e29049f995218cb"><div class="ttname"><a href="struct_app_ctx.html#ade3d8cfe6a661cd19e29049f995218cb">AppCtx::GridScale</a></div><div class="ttdeci">PetscReal GridScale</div><div class="ttdef"><b>Definition:</b> appCtx.h:103</div></div>
<div class="ttc" id="struct_app_ctx_html_a777d9cd545a0a6ba1180c904409fead1"><div class="ttname"><a href="struct_app_ctx.html#a777d9cd545a0a6ba1180c904409fead1">AppCtx::Upp</a></div><div class="ttdeci">Vec * Upp</div><div class="ttdef"><b>Definition:</b> appCtx.h:98</div></div>
<div class="ttc" id="struct_app_ctx_html_a17b4070be131d7cee7880bbc695f9169"><div class="ttname"><a href="struct_app_ctx.html#a17b4070be131d7cee7880bbc695f9169">AppCtx::totalTime</a></div><div class="ttdeci">PetscReal totalTime</div><div class="ttdef"><b>Definition:</b> appCtx.h:148</div></div>
<div class="ttc" id="struct_app_ctx_html_a28a6be93b52da95fb5e891f10a9a5d87"><div class="ttname"><a href="struct_app_ctx.html#a28a6be93b52da95fb5e891f10a9a5d87">AppCtx::RESTART_IT</a></div><div class="ttdeci">PetscInt RESTART_IT</div><div class="ttdef"><b>Definition:</b> appCtx.h:158</div></div>
<div class="ttc" id="struct_app_ctx_html_ae091f872a8ec5d2a5492586ae8fcbcbb"><div class="ttname"><a href="struct_app_ctx.html#ae091f872a8ec5d2a5492586ae8fcbcbb">AppCtx::globalContinuity</a></div><div class="ttdeci">PetscInt globalContinuity</div><div class="ttdef"><b>Definition:</b> appCtx.h:198</div></div>
<div class="ttc" id="struct_app_ctx_html_a7f9ce51f72bd948d78fbf7082d7b5114"><div class="ttname"><a href="struct_app_ctx.html#a7f9ce51f72bd948d78fbf7082d7b5114">AppCtx::U</a></div><div class="ttdeci">Vec * U</div><div class="ttdef"><b>Definition:</b> appCtx.h:88</div></div>
<div class="ttc" id="struct_app_ctx_html_abc53c98a6b7d83305e474238bc3d9f51"><div class="ttname"><a href="struct_app_ctx.html#abc53c98a6b7d83305e474238bc3d9f51">AppCtx::loadStep</a></div><div class="ttdeci">LSFunction&lt; DIM &gt; loadStep</div><div class="ttdef"><b>Definition:</b> appCtx.h:241</div></div>
<div class="ttc" id="struct_app_ctx_html_afcb47a79a853cee1ae23ac5194ba05a5"><div class="ttname"><a href="struct_app_ctx.html#afcb47a79a853cee1ae23ac5194ba05a5">AppCtx::C_e</a></div><div class="ttdeci">Tensor&lt; 4, DIM, double &gt; C_e</div><div class="ttdef"><b>Definition:</b> appCtx.h:203</div></div>
<div class="ttc" id="struct_app_ctx_html_adfcef5b251f90ce037459e347d8f8b63"><div class="ttname"><a href="struct_app_ctx.html#adfcef5b251f90ce037459e347d8f8b63">AppCtx::iga</a></div><div class="ttdeci">IGA iga</div><div class="ttdef"><b>Definition:</b> appCtx.h:73</div></div>
<div class="ttc" id="classsolution_vectors_html"><div class="ttname"><a href="classsolution_vectors.html">solutionVectors</a></div><div class="ttdef"><b>Definition:</b> solutionClass.h:221</div></div>
<div class="ttc" id="struct_app_ctx_html_a789652912f4d6df6c0836aa22ae93de0"><div class="ttname"><a href="struct_app_ctx.html#a789652912f4d6df6c0836aa22ae93de0">AppCtx::L</a></div><div class="ttdeci">Tensor&lt; 1, DIM, PetscReal &gt; L</div><div class="ttdef"><b>Definition:</b> appCtx.h:123</div></div>
<div class="ttc" id="app_ctx_8h_html_aa90344a3c2eb0a5f3f8e3210bd8184e0"><div class="ttname"><a href="app_ctx_8h.html#aa90344a3c2eb0a5f3f8e3210bd8184e0">PFFunction</a></div><div class="ttdeci">void(*)(const Tensor&lt; 1, dim, double &gt; &amp;x, const Tensor&lt; 1, dim, double &gt; &amp;normal, const solutionScalars&lt; dim, double &gt; &amp;c, const solutionVectors&lt; dim, double &gt; &amp;u, AppCtx&lt; dim &gt; &amp;user, std::vector&lt; double &gt; &amp;scalarProjections, std::vector&lt; Tensor&lt; 1, dim, double &gt; &gt; &amp;vectorProjections) PFFunction</div><div class="ttdef"><b>Definition:</b> appCtx.h:60</div></div>
<div class="ttc" id="struct_app_ctx_html_a55ccabd543df9a0223cd34dbd64c987d"><div class="ttname"><a href="struct_app_ctx.html#a55ccabd543df9a0223cd34dbd64c987d">AppCtx::N</a></div><div class="ttdeci">Tensor&lt; 1, DIM, PetscInt &gt; N</div><div class="ttdef"><b>Definition:</b> appCtx.h:118</div></div>
<div class="ttc" id="struct_app_ctx_html_a2e274b20a2ede848fb33f819c0b18e5b"><div class="ttname"><a href="struct_app_ctx.html#a2e274b20a2ede848fb33f819c0b18e5b">AppCtx::igaProject</a></div><div class="ttdeci">IGA igaProject</div><div class="ttdef"><b>Definition:</b> appCtx.h:78</div></div>
<div class="ttc" id="struct_app_ctx_html_a82c1e8d8aca14b5512f031c55284da3e"><div class="ttname"><a href="struct_app_ctx.html#a82c1e8d8aca14b5512f031c55284da3e">AppCtx::par_mat</a></div><div class="ttdeci">double * par_mat</div><div class="ttdef"><b>Definition:</b> appCtx.h:216</div></div>
<div class="ttc" id="app_ctx_8h_html_a5f15093cf5427bfb2fd3033d31df7a88"><div class="ttname"><a href="app_ctx_8h.html#a5f15093cf5427bfb2fd3033d31df7a88">BCFunction</a></div><div class="ttdeci">void(*)(AppCtx&lt; dim &gt; &amp;, double) BCFunction</div><div class="ttdef"><b>Definition:</b> appCtx.h:24</div></div>
<div class="ttc" id="struct_app_ctx_html_a7c81203929d679b6ee72dec416c9bea9"><div class="ttname"><a href="struct_app_ctx.html#a7c81203929d679b6ee72dec416c9bea9">AppCtx::skipOutput</a></div><div class="ttdeci">PetscInt skipOutput</div><div class="ttdef"><b>Definition:</b> appCtx.h:153</div></div>
<div class="ttc" id="struct_app_ctx_html_a9bc7b320034d23a4cb30b978ae0396c7"><div class="ttname"><a href="struct_app_ctx.html#a9bc7b320034d23a4cb30b978ae0396c7">AppCtx::scalarProjectnFields</a></div><div class="ttdeci">std::vector&lt; std::string &gt; scalarProjectnFields</div><div class="ttdef"><b>Definition:</b> appCtx.h:183</div></div>
<div class="ttc" id="app_ctx_8h_html_a5d9f27a2031043e19e4fe2dc0b697b70"><div class="ttname"><a href="app_ctx_8h.html#a5d9f27a2031043e19e4fe2dc0b697b70">scalarICFunction</a></div><div class="ttdeci">double(*)(const Tensor&lt; 1, dim, double &gt; &amp;, unsigned int, AppCtx&lt; dim &gt; &amp;) scalarICFunction</div><div class="ttdef"><b>Definition:</b> appCtx.h:30</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
